<div id="table" style="overflow: auto;">
{if $WEB_APP.editform eq TRUE}
	{if !isset($hide_delete)}<form method="post" action="{$WEB_APP.action_url}" name="fieldsForm" id="fieldsForm">{/if}
{/if}
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr id="head" valign="top">
	<td class="leftborder" width="6"><img src="{$WEB_APP.images_dir}btlg.gif"></td>
{if $WEB_APP.editform eq TRUE && $WEB_APP.list_actions_access}
	{if !isset($WEB_APP.hide_delete)}<td width=10 class="col">#</td>{/if}
{/if}
{foreach from = $columns item = column}
	{if $WEB_APP.editform eq FALSE}
		<td class="col">{$column->name}</td>
	{else}
		{if $WEB_APP.sort_field eq $column->title}
			{if $WEB_APP.sort_order eq "DESC"}
				<td class="col"><a href="{$WEB_APP.script_name}&amp;action={$WEB_APP.action}&amp;sort={$column->title}{if $WEB_APP.field_field neq ''}&amp;field={$WEB_APP.field_field}{/if}{if $WEB_APP.text_field neq ''}&amp;text={$WEB_APP.text_field}{/if}{if $WEB_APP.page neq 1}&amp;page={$WEB_APP.page}{/if}" title="{$text.txt_sort}">{$column->name}</a> <img src="{$WEB_APP.images_dir}arr_down-act.gif"></td>
			{else}
				<td class="col"><a href="{$WEB_APP.script_name}&amp;action={$WEB_APP.action}&amp;sort={$column->title}&amp;order=DESC{if $WEB_APP.field_field neq ''}&amp;field={$WEB_APP.field_field}{/if}{if $WEB_APP.text_field neq ''}&amp;text={$WEB_APP.text_field}{/if}{if $WEB_APP.page neq 1}&amp;page={$WEB_APP.page}{/if}" title="{$text.txt_sort}">{$column->name}</a> <img src="{$WEB_APP.images_dir}arr_up-act.gif"></td>
			{/if}
		
		{else}
			<td class="col"><a href="{$WEB_APP.script_name}&amp;action={$WEB_APP.action}&amp;sort={$column->title}{if $WEB_APP.field_field neq ''}&amp;field={$WEB_APP.field_field}{/if}{if $WEB_APP.text_field neq ''}&amp;text={$WEB_APP.text_field}{/if}{if $WEB_APP.page neq 1}&amp;page={$WEB_APP.page}{/if}" title="{$text.txt_sort}">{$column->name}</a></td>
		{/if}
	{/if}
{/foreach}
{if $WEB_APP.editform eq TRUE && isset($WEB_APP.row_actions) && $WEB_APP.row_actions_access}
	<td class="col" align="center">{$text.txt_actions}</td>
{/if}
	<td class="rightborder" width="6"><img src="{$WEB_APP.images_dir}btrg.gif"></td>
</tr>
